package com.yupi.usercenter.basic.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 云路供应链科技有限公司 版权所有  Copyright 2020
 * 问题件工单错误码
 * 规约：质控工程前三位编码156
 * @author by jiweiyu
 * @since Created in 2020/8/13
 */
@AllArgsConstructor
@Getter
public enum ProblemExpressWoExceptionEnum implements RespCodeEnum {

    SEQUENCE_POLL_IS_NULL(156010001, "sequence pool is null", "流水号池已经耗尽"),
    CANNOT_FOUND_THIS_WORK_ORDER(156010002, "cannot found this work order", "该工单不存在"),
    WORK_ORDER_STATUS_DOES_NOT_MATCH(156010003, "work order status does not match", "该工单状态不符"),
    WORK_ORDER_NETWORK_INFO_LACK(156010004, "work order network info lack", "工单网点信息缺失"),
    WORK_ORDER_HAS_BEEN_REVIEWED(156010005, "work order has been reviewed", "该工单已提交过重审"),
    WAY_BILL_NOT_EXIST(156010006, "waybill not exist", "运单号不存在"),
    PROBLEM_EXPRESS_CODE_NOT_EXIST(156010007, "waybill not exist", "问题件编号不存在"),
    DUPLICATE_WORK_ORDER(156010008, "duplicate work order", "工单重复"),
    CREATE_WORK_ORDER_NETWORK_INFO_LACK(156010009, "create work order network info lack", "生成工单网点信息缺失"),
    INCORRECT_FILE_FORMAT(156010010, "incorrect file format", "上传文件格式不正确"),
    EXCEL_FILE_DATA_NOT_NULL(156010011, "incorrect file format","文件数据不能为空"),
    EXCEL_FILE_DATA_ERROR(156010012, "excel file data format error","文件数据错误"),
    APPLY_AGENCY_AREA_INTERVENTION_EXIST(156010013, "apply_agency_area_intervention_exist", "仅有一次请求代理区介入的机会"),
    AGENCY_AREA_APPLY_REVIEW_EXIST(156010014, "agency_area_apply_review_exist", "仅有一次请求重审的机会"),
    DATA_EXIST(156010015, "data exist", "记录已存在"),
    PROCESSOR_OPINIONS_NOT_NULL(156010016, "processor_opinions_not_null", "处理意见不能为空"),
    TIME_TYPE_IS_EXIST(156010017, "time type is exist", "时间配置已存在"),
    NETWORK_TYPE_DOES_NOT_HAVE_CREATE_PERMISSION(156010018, "network type doest have create permission", "该网点类型无生成工单权限"),
    DUPLICATE_TYPE(156010019, "duplicate type", "类型重复"),
    NOT_FOUND_THIS_CONFIG(156010020, "not found this config", "查询不到该配置"),
    NO_PROCESSOR_AUTHORITY(156010021, "no_processor_authority", "当前的工单状态不允许此操作"),
    AMOUNT_ERROR(156010022, "amount_error", "惩罚金额不能小于奖励金额"),
    IMPORT_SIZE_EXCEEDS_LIMIT(156010023, "import_size_exceeds_limit", "导入超出限制条数"),
    REVOCATION_TIME_LIMIT_EXCEEDED(156010024, "Revocation time limit exceeded", "超过撤销时限"),
    NO_NETWORK_OPERATION_AUTHORITY(156010025, "No network operation authority", "该网点类型无操作工单权限"),
    NO_VIEW_APPLY_AUTHORITY(156010026, "no_view_apply_authority", "无查看申报网点数据的权限！"),
    NO_VIEW_RESPONSIBLE_AUTHORITY(156010027, "no_view_responsible_authority", "无查看责任网点数据的权限！"),
    NOT_FOUND_WORK_ORDER_NETWORK_INFO(156010028, "work order network info lack", "查找不到责任网点或代理区信息"),
    BATCH_STATUS_DIFF(156010029, "batch no processor authority", "批量处理存在工单状态不符合"),
    BATCH_TYPE_DIFF(156010030, "batch no processor authority", "请选择同一网点，同一类型，同一状态的数据"),
    HQ_BATCH_TYPE_DIFF(156010031, "batch no processor authority", "请选择同一类型，同一状态的数据"),
    NETWORK_INFO_LACK(156010032, "network info lack", "查询不到网点信息"),
    NETWORK_CONSISTENT(156010033, "network is consistent", "申报网点和责任网点一致"),
    REPEAT_GENERATION_COMPLAIN_WORK_ORDER(156010034, "repeat generation complain work order", "重复生成工单"),
    PROBLEM_EXPRESS_NOT_EXIST(156010035, "waybill not exist", "问题件不存在"),
    RECORD_TYPE_IS_NULL(156010036,"record type is null","备案类型不允许为空"),
    ONLY_CAN_COMPLAIN_ABOUT_PROBLEMS_REGISTERED_IN_THE_OUTLETS(156010037,"only can complain about problems registered in the outlets","只能投诉网点登记的问题件"),
    REPEAT_COMPLAIN(156010038,"repeat complain","该问题件已存在问题件工单，投诉失败"),
    RECODE_DENY_CREATE(156010039, "recode deny create", "已备案且禁止生成工单"),
    TYPE_DENY_RECODE(156010040, "type deny recode", "该类型不允许备案"),
    CANNOT_EDIT_RECODE(156010041, "cannot edit recode", "无问题件工单备案修改权限"),
    CANNOT_EXIST(156010042, "cannot exist", "备案已存在"),
    OVER_STANDARD_EXPRESS_PARAMS_NULL_ERROR(156010043, "over standard  express params null error", "超标件以下字段需必填：客户类型，是否签订月结，专业市场名称，体积重量（KG），货物尺寸-长(cm)，货物尺寸-宽(cm)，货物尺寸-高(cm)，实际重量(KG)，客户/市场业务量，停止合作日期，停止合作原因"),
    FRESH_EXPRESS_EXPRESS_PARAMS_NULL_ERROR(156010044, "fresh express express params null error", "生鲜件以下字段需必填：是否签订月结，合同生效时间，合同失效时间，始发城市，目的城市，专业市场名称，时效要求，货物尺寸-长(cm)，货物尺寸-宽(cm)，货物尺寸-高(cm)，实际重量(KG)，外包装，内包装，冷媒"),
    CANNOT_EDIT_CLOSE_WO(156010045, "cannot edit close problem express work order", "无完结问题件工单修改权限"),
    CANNOT_EDIT_AMOUNT(156010046, "No configuration end time limit", "该类型无法修改奖励/判罚金额"),
    NO_CONFIGURATION_END_TIME_LIMIT(156010047, "no configuration end time limit", "没有配置完结时限"),
    WORK_ORDER_FINISH_TIME_INFO_LACK(156010048, "work order finish time info lack", "工单完结时间信息缺失"),
    TIME_LIMIT_EXCEEDED(156010049, "Time limit exceeded", "当前已超过完结处理时效"),
    FLOW_STATUS_CHANGE(156010050, "flow status change", "存在流水单状态发生变化"),
    TIME_ERROR(156010051, "time error", "选择的时间有误"),
    REPEAT_APPEAL(156010052, "repeat appeal ", "工单已申诉过，不允许再次申诉"),
    NO_APPEALS_ALLOWED(156010053, "no appeals allowed", "该类型不允许再次申诉"),
    PACKAGE_NUMBER_IS_REQUIRE(156010054, "package number is required", "该类型包号为必填项"),
    RESP_INFO_ERROR(156010055, "resp info error", "责任网点信息错误，网点类型仅为网点/代理区/中心"),
    TASK_NUMBER_ONLY_GX(156010056, "", "任务单号必须包含ZX或GX加数字，总长度15位"),
    END_APPLY_TIME_LIMIT_EXCEEDED(156010057, "", "超过完结再申诉时间限制"),
    THE_AGENCY_AREA_IS_THE_SAME_CANNOT_APPEAL(156010058, "The agency area is the same, cannot appeal ", "代理区相同不允许申诉到总部"),
    RECORD_TYPE_NOT_EXIST(156010059, "record_type_not_exist", "备案类型不存在"),
    RECORD_TYPE_IS_ENABLE(156010060, "record_type_not_exist", "备案类型被禁用"),
    WORK_ORDER_IS_SIGN(156010061, "work order is sign", "运单已签收, 且配置不允许生成问题件工单"),
    ACTUAL_WEIGHT_IS_EMPTY(156010062, "actual weight is empty", "类型重量不符，实际重量为必填项"),
    TYPE_ERROR(156010063, "type error", "类型不符"),
    AWARD_PEN_AMOUNT_NO_EQ(156010064, "award pen amount no eq", "奖罚金额不符合要求"),
    ALLOW_SELECT_ONE_BUT_SECOND(156010065,"allow_select_one_but_second","备案后自动驳回/备案后完结 仅允许选择一个"),
    PROBLEM_TYPE_IS_DISABLE(156010066,"problem_type_is_disable","类型为禁用状态，不允许生成工单"),
    UPPER_LIMIT(156010067, "upper limit", "存在达到上限的工单"),
    NO_FOUND_AMOUNT(156010068, "no found amount", "未配置处罚金额"),
    INDEX_LIMIT(156010069, "index limit", "达到上限"),
    NO_OPERATION(156010065, "no operation", "无权限操作"),
    ONLY_ARCHIVED_DATA_CAN_BE_OPERATED(156010066, "only archived data can be operated", "只能操作已归档数据"),
    ONLY_INTEGERS(156010067, "only integers", "只允许整数"),
    RESP_AGREEMENT_ERROR(156010068, "Only allow the submission of work orders for the responsible outlets in the agency area", "只允许提交本代理区所属责任网点工单"),
    RESP_WRITE_PERMISSION_ERROR(156010069, "error in filling in responsibility authority", "责任填写,无权限操作"),
    RESP_AGENT_USER_CREATE_PERMISSION(156010070, "Only the user in the agent area can enter", "代理区用户才可以录入工单"),
    CALL_APPROVAL_FAIL(156010071, "call approval fail", "调用流程审批超时,请稍后重试"),
    EDIT_FAILURE(156010072, "edit failure", "只能编辑结算失败或待推送的状态的流水单"),
    CANNOT_FOUND_THIS_SERIAL(156010073, "cannot found this serial", "该流水不存在"),
    EXCESSIVE_EDITING(156010074, "excessive editing", "最多只能编辑10次"),
    TRANSACTION_TYPE_FEE_TYPE_MATCHING_FAILURE(156010075,"transaction type and fee type matching failure","交易类型与费用类型匹配失败"),
    MISSING_REPORT_STATUS_NOT_SUPPURT(156010081, "missing report status not suppurt", "遗失率质量工单状态类型不支持"),
    MISSING_REPORT_SECONDTYPE_NOT_SUPPURT(156010082, "missing report secondtype not suppurt", "遗失率质量工单二级类型不支持"),
    ONLY_IMPORTED_WORK_ORDERS_CAN_BE_MANIPULATED( 156010083,"only imported work orders can be manipulated","只能操作导入的工单"),
    NETWORK_NAME_IS_ERROR(156010084 , "network name is error","网点名称有误"),
    NO_ELIGIBLE_PROCESSING_ITEMS(156010085, "no_eligible_processing_items", "无符合条件的处理项！"),
    UNABLE_TO_PUSH_FINANCE(156010086, "no_eligible_processing_items", "暂时无法推送财务流水"),
    PUSH_FLOW_FAIL(156010087, "no_eligible_processing_items", "财务流水推送失败"),
    DUPLICATE_REGISTRATION_IS_NOT_ALLOWED(156010088 , "Duplicate registration is not allowed","该运单号/任务单号/包号已登记过监控工单，不允许重复登记！"),
    SHIPMENT_NO_IS_REQUIRE(156010059, "shipment no is required", "该类型任务单号为必填项"),
    WAYBILL_NO_IS_REQUIRE(156010090, "waybill no is required", "该类型运单号为必填项"),
    PACKAGE_INSIDE_NUMBER_IS_REQUIRE(156010091, "", "该类型包内件必填"),
    CROSSAGENT_AREA_IS_NOT_ALLOWED(156010092 , "CrossAgent area is not allowed","代理区维度下责任网点不允许选择跨代理区网点！"),
    NO_PROCESSOR_TYPE_PERMISSION(156010093 , "No processor type permission","该网点无操作该维度监控工单类型权限"),
    NO_PROCESSOR_MONEY_TYPE_PERMISSION(156010094 , "No processor money type permission","该网点无操作该维度监控工单金额类型权限"),
    CANNOT_FOUND_THIS_NETWORK_INFO(156010095, "cannot found this network info", "该维度网点信息不存在"),
    ONLY_BE_AGENCY_AND_HEADQUARTERS(156010096, "only be agency and headquarters", "申报维度只能是代理区和总部"),
    CONTRABAND_CAN_NOT_APPLY_AGENCYAREA_INTERVENTION(156010097, "contraband can not apply agencyArea intervention", "违禁品不能请求代理区介入"),

    HIDE_IS_NOT_EMPTY(156010097 , "hide_is_not_empty","该运单号/任务单号/包号为隐藏项,不允许传值"),
    CAN_NOT_QUERY_REIGN_DATA(156010098 , "can Not query Reign Data","该网点无操作查看大区数据权限"),
    PERSON_LIABLE_INFO_CAN_NOT_NULL(156010099 , "person liable info can Not null","请输入责任组长/责任主管/责任转运中心责任人"),
    NO_REVIEW_AUTH(156010100, "no_review_auth","无审核权限!"),
    RESP_NETWORK_IS_NOT_ALLOW_HQ(156010101, "resp_network_is_not_allow_hq","责任方不允许为总部，请核实正确责任单位"),
    QUERY_DATE_ERROR(156010102,"query_date_error","查询范围不能超过31天"),
    GOODS_NAME_IS_NOT_EMPTY(156010102, "goods_name_is_not_empty", "监控备案类型，货物名称不能为空"),
    MONITOR_CAN_NOT_APPLY_BY_RECODE(156010103, "monitor_can_not_apply_by_recode", "该客户已备案，不允许申报，生效开始时间-结束时间"),
    THE_RECORD_WORK_NOT_EXIST(156010104, "the_record_work_not_exist", "备案工单不存在"),

    ONLY_ONE_CHANCE_TO_REJECT(156010107, "Only one chance to reject", "仅有一次驳回的机会"),
    MUST_BE_SAME_AGENT_AREA(156010108, "must be in the same agent area", "申报网点和责任网点必须同代理区才可以操作"),
    AT_LEAST_ONE_INTERACTION_CAN_BE_APPEALED(156010109, "at least one interaction can be appealed", "责任代理区最少交互一次后才可以申诉到总部"),
    CONFIGURATION_INFORMATION_ALREADY_EXISTS(156010110, "configuration information already exists", "已存在配置信息，不允许操作"),
    THE_ADMINISTRATOR_HAS_CONFIGURED_NOT_TO_ALLOW_SUBMISSIONS(156010111, "The administrator has configured not to allow submissions", "管理员已配置不允许提交"),

    ;

    int code;
    String key;
    String msg;

    @Override
    public void setArgs(Object[] var1) {

    }
}
